/**
 * 
 */
package util;

/**
 * @author Xiaohui
 * 
 */
public class FileAddrUtil {
	public static String changeSuffix(String fullFileName, String suffix) {
		int i = fullFileName.indexOf(".");
		return fullFileName.substring(0, i + 1) + suffix;
	}

	/**
	 * Append file name without changing the suffix
	 * 
	 * @param fullFileName
	 * @param toappend
	 * @return
	 */
	public static String nameAppend(String fullFileName, String toappend) {
		int i = fullFileName.indexOf(".");
		return fullFileName.substring(0, i) + toappend
				+ fullFileName.substring(i);
	}

	
}
